package com.maiji.cloud.entities.login;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * Description:  饮食记录
 * @author zhanglr  
 * @date 2019年6月12日
 */

@Data
@Accessors(chain=true)
@Table(name = "diet_log")
public class DietLog {
	@TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId; //主键
	
	@Column(name = "user_id", type = MySqlTypeConstant.VARCHAR, length = 50)
	private String userId; //用户id
	
	@Column(name = "type", type = MySqlTypeConstant.INT, length = 2)
	private Integer type; //1:早餐，2中餐，3晚餐，4加餐

	@Column(name = "img_type", type = MySqlTypeConstant.INT, length = 2)
	private Integer imgType; // 图片类型；1图片，2视频
	
	@Column(name = "content", type = MySqlTypeConstant.TEXT)
	private String content; //内容
	
	@Column(name = "img_url", type = MySqlTypeConstant.TEXT)                 
	private String imgUrl; //图片或视频
	
    @Column(name = "province", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String province;

    @Column(name = "city", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String city;

    @Column(name = "county", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String county;
	
    @Column(name = "detail_address", type = MySqlTypeConstant.VARCHAR, length = 255)
    private String detailAddress;
    
    @Column(name = "lon", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double lon;  // 经度

    @Column(name = "lat", type = MySqlTypeConstant.DOUBLE, length = 5, decimalLength = 2)
    private Double lat;  // 纬度
    
    @Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
    private Date inTime;  
    
}
